<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/9 0009
  Time: 13:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1" width="480px" align="center">
    <tr>
        <td>姓名</td>
        <td>年龄</td>
        <td>班级</td>

        <td align="center">操作</td>
    </tr>
    <c:forEach items="${list}" var="stu" varStatus="i">
        <tr>
            <!--隐藏的id测试数据和-->
            <input type="hidden" value="${stu.id}" id="idBook">
            <!--表格的id排序-->
            <input type="hidden" value="${i.index+1}" name="tableId">
            <td>${stu.name}</td>
            <td>${stu.age}</td>
            <td>${stu.className}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
